<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
		<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
		<title>{{title}}</title>
		<link rel="stylesheet" type="text/css" href="stylesheets/bootstrap.min.css"/>
		<link rel="stylesheet/less" type="text/css" href="stylesheets/userHistory.less"/>
		<script src="js/less.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/template.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
		.wC{
   			 animation:wC 1s linear;
		}
		@keyframes wC{
			from{width: 0;}
			to{width: 15%;}
		}
		</style>
	</head>
	
	<body>
		<header>
			<div class="container" style="position: relative;">
					<!--<a id="goback" style="display:none;position: absolute;width: 30px;height: 30px;border-radius: 50%;background-color: white; left: 0px;top: 7px;color: lightcoral;line-height: 30px;text-align: center;">-->
				<a id="goback" style="position:absolute;width: 25px;height: 25px;text-align: center;line-height: 25px;background-color: white;color: lightblue;border-radius: 50%;left: 10px;top:15px;font-size: 14px;"><span id="goback" class="glyphicon glyphicon-chevron-left"></span></a>
					<div class="btn-group">
						<a id="subscribe" class="btn btn-default" >订阅</a>
						<a id="history" class="btn btn-default">历史</a>	
					</div>
					<span class="dataCount badge">0</span>
				<span id="delete" class="glyphicon glyphicon-trash " data-open=false style="position: absolute;right: 10px;top: 20px;"></span>
			</div>
		</header>
		
		<section id="data-content">
								
		</section>
		<!--<footer class="loading">
			<div>
				<span class="glyphicon glyphicon-cloud-upload iconM"></span><span class="loadText">上拉加载</span>						
			</div>
		</footer>  -->
		 <div class="shortcutBtn" style="display: none;">
			<div class="container">
				<span id="backTop" class="glyphicon glyphicon-chevron-up"></span>
				<span id="backBottom" class="glyphicon glyphicon-chevron-down"></span>
			</div>
		</div> 
		
		<footer class="footerNav">
			<div class="btn-group">
				<a  class="btn btn-default readWC disabled footerA ">注目</a>
				<a  class="btn btn-default replyWC disabled footerA">回复</a>
				<a  class="btn btn-default postWC disabled footerA">吐槽</a>
			</div>
		</footer>
		
	</body>
</html>
<script id="mainTemplate" type="text/html">
		<ul class="list-group" >
			{{each data as data index}}
				<li class="list-group-item moveTheme" data-comment="{{if data.comment_id}}{{data.comment_info.theme_id}}{{/if}}"  data-history="{{if data.theme_id }}{{data.theme_id}}{{else if data.comment_id}}{{data.comment_id}}{{else}}{{data.id}}{{/if}}">
						<div class="sLeft">
							<span class="glyphicon glyphicon-minus-sign"></span>
						</div>
						<div class="sContent">
							<div class="list-group-item-heading sCH">						
								<span class="theme"></span>
							</div>
							<div class="list-group-item-text sCc">
								<div class="author">
									<p>id:{{if user_id}}	
										{{user_id}}									
									{{else}}
										{{data.user_id}}
									{{/if}}	</p>
									
								</div>
								<div class="message">
									
										<!--<span class="badge">new</span>-->
									{{if data.update}}
										<span class="badge">new</span>
									{{/if data.update}}
								
									<div class="mc">
										
									</div>	
									<div class="img">
										{{if data.theme_id}}
										<img src="{{data.theme_info.out_img}}" alt="" />
										{{else if data.comment_id}}
										<img src="{{data.comment_info.out_img}}" alt="" />
										{{else}}
										<img src="{{data.out_img}}" alt="" />
										{{/if}}
									</div>
									<br />
										<span class="sectionTime ">
									{{if data.theme_id }}
										{{data.theme_info.update_time}}
									{{else if data.comment_id}}
										{{data.comment_info.time}}
									{{else}}
										{{data.update_time}}	
									{{/if}}	
									</span>
								</div>
							</div>
							<div class="list-group-item-text sCf">
									<span class="glyphicon glyphicon-heart-empty"></span>
									&nbsp;<span class="likeWC">{{data.like_num}}</span>
									<div class="pull-right">
										<span class="glyphicon glyphicon-envelope"></span>
										&nbsp;<span class="readWC">{{data.content_num}}</span>
									</div>
							</div>
						</div>
						<div class="sRight">
							<span>删除</span>
						</div>
					</li>
			{{/each}}
		</ul>
</script>
<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="js/bootstrap.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.cookie.js" type="text/javascript" charset="utf-8"></script>
<script src="javascripts/userHistory.js" type="text/javascript" charset="utf-8"></script>
